package pt.fct.mpc.lastfm.search;

public class TrackSearchHit
	extends SearchHit
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 950748074418894140L;
	protected String artist;
	protected int listeners;

	public TrackSearchHit(String name, String artist, int listeners, 
		String url, int searchPosition)
	{
		super(name, url, searchPosition);
		
		this.setArtist(artist);
		this.setListeners(listeners);
	}

	public String getArtist()
	{
		return artist;
	}

	public void setArtist(String artist)
	{
		this.artist = artist;
	}

	public int getListeners()
	{
		return listeners;
	}

	public void setListeners(int listeners)
	{
		this.listeners = listeners;
	}
	
	@Override
	public String getDefaultImage()
	{
		return super.getSmallImage();
	}

	@Override
	public String toString()
	{
		return this.artist + " - " + this.name;
	}
}
